import App from './App'
import store from './store'

import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'

// import tuiIcon from './components/my-component.vue'
import tuiIcon from './components/tui-icon.vue'
import tuiButtom from './components/tui-button/tui-button.vue'
import tuiCountdown from './components/tui-countdown/tui-countdown.vue'
import tuiDivider from './components/tui-divider/tui-divider'
import tuiTag from './components/tui-tag/tui-tag'
import tuiDrawer from './components/tui-drawer/tui-drawer'
import tuiBadge from './components/tui-badge/tui-badge'
import tuiListCell from './components/tui-list-cell/tui-list-cell'
import tuiTopDropdown from './components/tui-top-dropdown/tui-top-dropdown'
import tuiBottomPopup from './components/tui-bottom-popup/tui-bottom-popup'
import tuiNumberbox from './components/tui-numberbox/tui-numberbox'
import tuiModal from './components/tui-modal/tui-modal'
import tuiNomore from './components/tui-nomore/tui-nomore'
import tuiTabs from './components/tui-tabs/tui-tabs'
import tuiRate from './components/tui-rate/tui-rate'
import tuiUpload from './components/tui-upload/tui-upload'
import tuiBubblePopup from './components/tui-bubble-popup/tui-bubble-popup'
import tuiNavigationBar from './components/tui-navigation-bar/tui-navigation-bar'
import tuiListView from './components/tui-list-view/tui-list-view'
import tuiTimeAxis from './components/tui-time-axis/tui-time-axis'
import tuiTimeaxisItem from './components/tui-timeaxis-item/tui-timeaxis-item'
import tuiLoadmore from './components/tui-loadmore/tui-loadmore'




Vue.component('tui-icon', tuiIcon)
Vue.component('tui-button', tuiButtom)
Vue.component('tui-countdown', tuiCountdown)
Vue.component('tui-divider', tuiDivider)
Vue.component('tui-tag', tuiTag)
Vue.component('tui-drawer', tuiDrawer)
Vue.component('tui-badge', tuiBadge)
Vue.component('tui-list-cell', tuiListCell)
Vue.component('tui-top-dropdown', tuiTopDropdown)
Vue.component('tui-bottom-popup', tuiBottomPopup)
Vue.component('tui-numberbox', tuiNumberbox)
Vue.component('tui-modal', tuiModal)
Vue.component('tui-nomore', tuiNomore)
Vue.component('tui-tabs', tuiTabs)
Vue.component('tui-upload', tuiUpload)
Vue.component('tui-rate', tuiRate)
Vue.component('tui-bubble-popup', tuiBubblePopup)
Vue.component('tui-navigation-bar', tuiNavigationBar)
Vue.component('tui-list-view', tuiListView)
Vue.component('tui-time-axis', tuiTimeAxis)
Vue.component('tui-timeaxis-item', tuiTimeaxisItem)
Vue.component('tui-loadmore', tuiLoadmore)

import { imgUrl, getTabs } from "./util/image.js"
Vue.prototype.$imgUrl = imgUrl


import TuniaoUI from 'tuniao-ui'
Vue.use(TuniaoUI)
let vuexStore = require('@/store/$tn.mixin.js')
Vue.mixin(vuexStore)
let mpShare = require('tuniao-ui/libs/mixin/mpShare.js')
Vue.mixin(mpShare)

const app = new Vue({
  store,
  ...App
})

// 引入请求封装
// require('./util/request/index')(app)

app.$mount()